<!DOCTYPE HTML>
<html lang="en-US">

<head>
    <meta charset="UTF-8">
    <title>ueditor demo</title>
    <link type="text/css" rel="stylesheet" href="./resources/style/demo.css">
</head>

<body>
<div class="editor-container">
    <!-- 加载编辑器的容器 -->
    <script id="container" name="content" type="text/plain">
        这里写你的初始化内容

    </script>
</div>
<div id="view-container" class="editor-container">

</div>
<!-- 配置文件 -->
<script type="text/javascript" src="ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="ueditor.all.js"></script>
<!-- 实例化编辑器 -->
<script type="text/javascript">
    var ue = UE.getEditor('container', {
        autoHeight: false,
        toolbars: [
            ['fullscreen', 'source', 'undo', 'redo', 'bold']
        ]
    });

    var html = ue.getContent();
    var viewer = document.getElementById('view-container');
    viewer.innerHtml = html;
    var txt = ue.getContentTxt();
    console.log(txt);
</script>
<script type="javascript" rel="script" src="./resources/script/demo.js"></script>
</body>

</html>